import request from '@/utils/request'

export function listSource(query) {
  return request({
    url: '/suggest/source/listSource', method: 'get', params: query
  })
}

export function updateDrugSuggestedSource(data) {
  return request({
    url: '/suggest/source/update', method: 'post', data: data
  })
}

export function addDrugSuggestedSource(data) {
  return request({
    url: '/suggest/source/add', method: 'post', data: data
  })
}

export function sourceUpload(data) {
  return request({
    url: '/suggest/source/upload', method: 'post', data: data
  })
}

export function sourceDelete(data) {
  return request({
    url: '/suggest/source/delete', method: 'post', data: data
  })
}

export function downloadFile(query) {
  return request({
    url: '/suggest/source/down', method: 'get', params: query, responseType: 'blob'
  })
}
